home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Bitmap / Include / BmpFrame.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  2.0 KB  |  69 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                BmpFrame.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef BMPFRAME_H
  14. #define BMPFRAME_H
  15.  
  16. // ----- Framework Includes -----
  17.  
  18. #ifndef FWFRAME_H
  19. #include "FWFrame.h"
  20. #endif
  21.  
  22. //========================================================================================
  23. //    •• Forward Declarations
  24. //========================================================================================
  25.  
  26. class CBitmapPart;
  27. class FW_CFacet;
  28. class XMPFrame;
  29.  
  30. //========================================================================================
  31. //    •• class CBitmapFrame
  32. //========================================================================================
  33.  
  34. class CBitmapFrame : public FW_CFrame
  35. {
  36. //----------------------------------------------------------------------------------------
  37. //    • Initialization/Destruction
  38. //
  39. public:
  40.     CBitmapFrame();
  41.     void InitBitmapFrame(XMPFrame* xmpFrame, CBitmapPart* bitmapPart);
  42.     virtual ~ CDECL CBitmapFrame();
  43.     
  44. //----------------------------------------------------------------------------------------
  45. //    • Inherited API
  46. //
  47. public:
  48.     FW_CFacet*             NewFacet(XMPFacet* xmpFacet);
  49.     virtual FW_Boolean    DoMenuEvent(XMPMenuBar *menuBar, XMPCommandID commandID);
  50.     virtual void        DoAdjustMenus(XMPMenuBar* menuBar);
  51.  
  52.     virtual void        FocusStateChanged(XMPTypeToken focus, FW_Boolean newState);
  53.  
  54. //----------------------------------------------------------------------------------------
  55. //    • New API
  56. //
  57. public:
  58.     FW_CPoint            GetZoomRatio() const;
  59.     void                AdjustBitmapSize(XMPCommandID commandID);
  60.     
  61. //----------------------------------------------------------------------------------------
  62. //    • Data Members
  63. //
  64. private:
  65.     CBitmapPart*         fBitmapPart;
  66. };
  67.  
  68. #endif
  69.